package com.pay.common.pay.utils;

import java.text.SimpleDateFormat;
import java.util.Calendar;

/**
 * @author 周益和
 * @ClassName DateUtils
 * @qq 1552951165
 */
public class DateUtils {
    /**
     * 获取昨日时间
     *
     * @return
     */
    public static String yesterdayTime() {
        Calendar cal = Calendar.getInstance();
        cal.add(Calendar.DATE, -1);
        String yesterday = new SimpleDateFormat("yyyy-MM-dd ").format(cal.getTime());
        return yesterday;
    }
}
